package org.example.studyonline.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.studyonline.pojo.Chapter;
import org.example.studyonline.pojo.VO.CommentVO;
import org.example.studyonline.pojo.VO.WatchCountVO;

import java.util.List;

@Mapper
public interface ChapterMapper extends BaseMapper<Chapter> {
    List<WatchCountVO> getWatchCountByPage(@Param("offset") Long offset,@Param("pageSize") Long pageSize);

    Long getWatchCount();

    List<CommentVO> getCommentByChapterId(@Param("chapterId") Integer chapterId);
}
